#ifndef _K_LOCAL_TIME_H
#define _K_LOCAL_TIME_H

#include <stdint.h>

struct s_ktime {
    uint8_t year;
    uint8_t mon;
    uint8_t day;
    uint8_t h;
    uint8_t m;
    uint8_t s;
};

extern volatile uint32_t localtime;
uint32_t ktime_set(struct s_ktime time);
void ktime_get(uint32_t timecount, struct s_ktime *time);

#endif

